<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
  </head>
  
  <body>
  
  </body>
  
  <script>
    /* Document.createElement() 创建新元素，参数为新元素标签名 */
    console.log(document.createElement('div'));//div{...}
    
    /* Document.createTextNode() 创建新文本节点，参数为文本内容 */
    console.log(document.createTextNode('createTextNode'));//#text{...}
  </script>
</html>